package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.LegalAgreementCreateValidate;
import com.mdd.admin.validate.LegalAgreementUpdateValidate;
import com.mdd.admin.validate.LegalAgreementSearchValidate;
import com.mdd.admin.vo.LegalAgreementListedVo;
import com.mdd.admin.vo.LegalAgreementDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 协议服务接口类
 * @author LikeAdmin
 */
public interface ILegalAgreementService {

    /**
     * 协议列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<LegalAgreementListedVo>
     */
    PageResult<LegalAgreementListedVo> list(PageValidate pageValidate, LegalAgreementSearchValidate searchValidate);

    /**
     * 协议详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return LegalAgreementDetailVo
     */
    LegalAgreementDetailVo detail(Integer id);

    /**
     * 协议新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(LegalAgreementCreateValidate createValidate);

    /**
     * 协议编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(LegalAgreementUpdateValidate updateValidate);

    /**
     * 协议删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
